﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Web;
using System.Web.Security;

using Htss.Platform.Data;

namespace DreamBox.DAL.User
{
    public class Friends
    {
        /// <summary>
        /// 删除好友
        /// </summary>
        /// <param name="FriendsID"></param>
        /// <returns></returns>
        public GHashTable Delete(int UserID,int FriendsUser)
        {
            DbProc gProc = new DbProc("dbox_proc_UserFriendsDelete");
            gProc.SetFields("@UserID", UserID);
            gProc.SetFields("@FriendsUser", FriendsUser);
            gProc.SetFields("@returnMsg", "", SqlDbType.VarChar, 60, ParameterDirection.Output);
            return gProc.ExecNonQueryHashTable();
        }
        /// <summary>
        /// 添加好友
        /// </summary>
        /// <param name="LaunchID"></param>
        /// <returns></returns>
        public GHashTable Add(int LaunchID)
        {
            DbProc gProc = new DbProc("dbox_proc_UserFriendsAdd");
            gProc.SetFields("@LaunchID", LaunchID);
            gProc.SetFields("@returnMsg", "", SqlDbType.VarChar, 300, ParameterDirection.Output);
            return gProc.ExecNonQueryHashTable();
        }
    }
}
